/*
 * TCPMessengerPlug.hpp
 *
 *  Created on: 03.05.2011
 *      Author: niea
 */

#ifndef TCPMESSENGERPLUG_HPP_
#define TCPMESSENGERPLUG_HPP_

#include <vector>
#include "TCPMessengerI.hpp"
#include "TCPListenerPlug.hpp"

namespace efs
{

class TCPMessengerPlug: public efs::TCPMessengerI
{
public:
	TCPMessengerPlug();
	virtual ~TCPMessengerPlug();
	void sendMessages(std::string const &msg);
	void addTCPListener(TCPListenerPlug *tcp_listener);

private:
	std::vector<TCPListenerPlug *> m_tcp_listeners;
};

}

#endif /* TCPMESSENGERPLUG_HPP_ */
